package jsonobj;

import java.util.Date;

import utils.Utils;

import com.google.gson.Gson;

public class JobInfo implements JSonObj {
	public String jname;
	public String filedir;
	public String resdir;
	public int nodes;
	public int procs;
	public String walltime;
	public String exec;
	public int opt;
	public int trange;
	public String clu;
	
	public JobInfo() {}
	
	public String toString()
	{
		return CLI_JOB_SUB+"|"+ new Gson().toJson(this);
	}
	
	public static JobInfo fromJSon(String json)
	{
		return new Gson().fromJson(json,JobInfo.class);
	}

}
